import { DataSource } from 'typeorm';
import { Ziliao } from './entities/ziliao.entity';

export const ziLiaoProviders = [
  {
    provide: 'ZILIAO_REPOSITORY', // 自定义的提供者令牌
    useFactory: (dataSource: DataSource) => dataSource.getRepository(Ziliao),
    inject: ['DATABASE_CONNECTION'], // 注入数据库连接
  },
];
